import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false

import store from './store'
Vue.prototype.$store = store
// request请求
import { http } from '@/common/service/service.js' 
Vue.prototype.$http = http

// md5加密
import w_md5 from "js_sdk/zww-md5/w_md5.js"
Vue.prototype.$w_md5 = w_md5;

App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  return {
    app
  }
}
// #endif